<?php
/*=======================================================================
 Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
 =======================================================================*/

$db->sql_query("UPDATE " . $prefix . "_bbgroups SET img_allow=0");
foreach ($_POST['img_allow'] as $allow){
$db->sql_query("UPDATE " . $prefix . "_bbgroups SET img_allow=1 WHERE group_id = '".$allow."'");
}
header("Location: admin.php?op=Uploadusergroups");

 ?>